﻿// GameArea.cpp: 实现文件
//

#include "pch.h"
#include "GreedySnake.h"
#include "GameArea.h"
#include "afxdialogex.h"


// GameArea 对话框

IMPLEMENT_DYNAMIC(GameArea, CDialogEx)

GameArea::GameArea(CWnd* pParent /*=nullptr*/)
	: CDialogEx(IDD_GREEDYSNAKE_DIALOG, pParent)
{

}

GameArea::~GameArea()
{
}

void GameArea::DoDataExchange(CDataExchange* pDX)
{
	CDialogEx::DoDataExchange(pDX);
}

void GameArea::OnPaint()
{
	CPaintDC dc(this);
	CRect rect;
	GetClientRect(rect);
	dc.SetBkMode(TRANSPARENT);
	CString strText;
	GetWindowText(strText);
	dc.DrawText(strText, rect, DT_CENTER | DT_VCENTER | DT_SINGLELINE);
}


BEGIN_MESSAGE_MAP(GameArea, CDialogEx)
END_MESSAGE_MAP()


// GameArea 消息处理程序